package com.example.tool.erp.sdk.api.sales;

import com.example.tool.erp.sdk.Pager;
import com.example.tool.erp.sdk.WdtErpException;
import com.example.tool.erp.sdk.api.sales.dto.TradeQueryGetLogRequest;
import com.example.tool.erp.sdk.api.sales.dto.TradeQueryHistoryRequest;
import com.example.tool.erp.sdk.api.sales.dto.TradeQueryHistoryResponse;
import com.example.tool.erp.sdk.api.sales.dto.TradeQueryRequest;
import com.example.tool.erp.sdk.api.sales.dto.TradeQueryResponse;
import com.example.tool.erp.sdk.impl.Api;
import shade.com.alibaba.fastjson2.JSONObject;

public interface TradeAPI
{
	@Api(value = "sales.TradeQuery.queryWithDetail", paged = true)
	TradeQueryResponse query(TradeQueryRequest request, Pager pager);

	@Api(value = "sales.TradeQuery.queryHistoryWithDetail", paged = true)
	TradeQueryHistoryResponse queryHistory(TradeQueryHistoryRequest request, Pager pager) throws WdtErpException;

	@Api(value = "sales.TradeQuery.getLog")
	JSONObject getLog(TradeQueryGetLogRequest request);
}